<?php

namespace App\Admin\Extensions;

use Encore\Admin\Form\Field;

class PHPEditor extends Field
{
    protected $view = 'admin.php-editor';

    protected static $css = [
    ];

    protected static $js = [
        'packages/ueditor/ueditor.config.js',
        'packages/ueditor/ueditor.all.js',
    ];

    public function render()
    {
        $this->script = <<<EOT
        
    var ue = UE.getEditor('editor');

EOT;
        return parent::render();

    }
}